package com.howie.gulimall.ware.feign;

import com.howie.common.utils.R;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description: 调用远程商品服务接口
 * @author: laizhenghua
 * @date: 2021/1/17 21:53
 */
@FeignClient("gulimall-product") // 用于发现服务(gulimall-product)
public interface ProductFeignService {
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);
}
